﻿namespace com.stifel.Exceptions.SharePointExceptions
{
    using System;

    [Serializable]
    public class FeatureDeactivationException : Exception
    {
        #region Constructors

        public FeatureDeactivationException( )
            : base("The feature deactivation failed.")
        {
        }

        public FeatureDeactivationException( Guid featureId, string title, string url )
            : base(string.Format( "The feature deactivation failed. The specified feature {0} ({1}) was not successfully deactivated at '{2}'.", featureId, title, url ))
        {
        }

        public FeatureDeactivationException( Guid featureId, string title, string url, Exception innerException )
            : base(string.Format( "The feature deactivation failed. The specified feature {0} ({1}) was not successfully deactivated at '{2}'.", featureId, title, url ), innerException)
        {
        }

        #endregion Constructors
    }
}